package com.zichan360.Spring5WebFlux;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * 创建用户:杨辽
 * 创建时间: 2018-03-13 19:33
 * 描   述: 一个简单的WebFlux接口
 **/
@RestController
public class BasicController {

    @GetMapping("/hello_world")
    public Mono<String> sayHelloWorld() {
        return Mono.just("Hello World");
    }
}